package com.tl.mybatis03.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Antg
 * @date 2021/8/410:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Address {
    private Integer id;
    private Integer userId;
    private String address;
    private String phone;
    private String consignee;//收货人
    private User user;

    public Address(Integer userId, String address, String phone, String consignee) {
        this.userId = userId;
        this.address = address;
        this.phone = phone;
        this.consignee = consignee;
    }
}
